<template>
  <div class="alumni-container">
    <!-- 英雄区域 -->
    <div class="hero-section">
      <div class="hero-content">
        <h1 class="hero-title">母校行活动</h1>
        <p class="hero-subtitle">重聚·分享·成长</p>
      </div>
    </div>

    <!-- 主要内容区域 -->
    <div class="main-content">
      <!-- 活动简介 -->
      <section class="activity-intro">
        <div class="section-header">
          <h2 class="section-title">活动简介</h2>
          <div class="title-divider"></div>
        </div>
        <div class="intro-content">
          <p class="intro-text">
            母校行活动是一年一度的校友盛会，旨在促进校友之间的交流与合作，同时为在校学生提供宝贵的学习与成长机会。活动内容丰富多彩，包括学术讲座、职业发展研讨会、文化娱乐活动等。
          </p>
          <div class="feature-list">
            <div class="feature-item">
              <div class="feature-icon">🎓</div>
              <p>重温校园生活，与昔日同窗重聚</p>
            </div>
            <div class="feature-item">
              <div class="feature-icon">💡</div>
              <p>分享人生经历和职业成就</p>
            </div>
            <div class="feature-item">
              <div class="feature-icon">🌱</div>
              <p>为在校学生提供职业规划指导</p>
            </div>
          </div>
          <p class="intro-text">
            母校行活动不仅是一次情感的重聚，更是一次智慧的碰撞和心灵的洗礼。我们期待每一位校友的参与，共同书写母校新的篇章。
          </p>
        </div>
      </section>

      <!-- 精彩瞬间 -->
      <section class="highlights-section">
        <div class="section-header">
          <h2 class="section-title">精彩瞬间</h2>
          <div class="title-divider"></div>
        </div>
        <div class="gallery-grid">
          <div class="gallery-item">
            <img src="../../assets/one.jpg" alt="活力瞬间" class="gallery-image">
            <div class="image-overlay">
              <span class="image-caption">活力</span>
            </div>
          </div>
          <div class="gallery-item">
            <img src="../../assets/two.jpg" alt="多彩活动" class="gallery-image">
            <div class="image-overlay">
              <span class="image-caption">多彩</span>
            </div>
          </div>
          <div class="gallery-item">
            <img src="../../assets/four.jpg" alt="快乐时光" class="gallery-image">
            <div class="image-overlay">
              <span class="image-caption">快乐</span>
            </div>
          </div>
        </div>
        <div class="highlights-footer">
          <p>
            我们承包母校行活动策划，为各位校友提供后勤保障和宣传推广，旨在加强校友联系，分享经验，增强学校凝聚力。
          </p>
        </div>
      </section>

      <!-- 开放时间 -->
      <section class="opening-time">
        <div class="section-header">
          <h2 class="section-title">开放时间</h2>
          <div class="title-divider"></div>
        </div>
        <div class="time-content">
          <div class="calendar-icon">📅</div>
          <p class="time-text">每年春季和秋季，具体时间请关注学校公众号</p>
          <div class="qr-code">
            <img src="../../assets/qr-code.png" alt="学校公众号二维码" class="qr-image">
            <p>扫码关注公众号</p>
          </div>
        </div>
      </section>
    </div>
  </div>
</template>

<script>
export default {
  name: 'AlumniActivityPage'
}
</script>

<style scoped>
.alumni-container {
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: #333;
  line-height: 1.6;
}

/* 英雄区域样式 */
.hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3)),
  url('../../assets/six.jpg') no-repeat center center;
  background-size: cover;
  height: 50vh;
  max-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  margin-bottom: 40px;
}

.hero-content {
  max-width: 800px;
  padding: 0 20px;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.3rem;
  font-weight: 300;
  letter-spacing: 2px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* 主要内容区域 */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 通用部分样式 */
.section-header {
  text-align: center;
  margin-bottom: 30px;
}

.section-title {
  font-size: 2rem;
  color: #2c3e50;
  font-weight: 600;
  margin-bottom: 15px;
}

.title-divider {
  height: 4px;
  width: 80px;
  background: linear-gradient(to right, #3498db, #9b59b6);
  margin: 0 auto;
  border-radius: 2px;
}

/* 活动简介部分 */
.activity-intro {
  background-color: white;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.intro-text {
  font-size: 1rem;
  color: #555;
  margin-bottom: 20px;
  text-align: justify;
  line-height: 1.8;
}

.feature-list {
  display: flex;
  justify-content: space-between;
  margin: 30px 0;
  flex-wrap: wrap;
}

.feature-item {
  flex: 1;
  min-width: 200px;
  text-align: center;
  padding: 0 15px;
  margin-bottom: 20px;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

/* 精彩瞬间部分 */
.highlights-section {
  background-color: white;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 25px;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  transition: transform 0.3s ease;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  max-height: 200px;
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  padding: 15px;
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-item:hover .gallery-image {
  transform: scale(1.05);
}

.gallery-item:hover .image-overlay {
  opacity: 1;
}

.image-caption {
  font-size: 1rem;
  font-weight: 500;
}

.highlights-footer {
  text-align: center;
  margin-top: 25px;
}

.highlights-footer p {
  font-size: 1rem;
  margin-bottom: 20px;
}

/* 开放时间部分 */
.opening-time {
  background-color: white;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.time-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.calendar-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.time-text {
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: 25px;
}

.qr-code {
  margin-top: 15px;
}

.qr-code img {
  width: 120px;
  height: 120px;
  margin-bottom: 10px;
  object-fit: contain;
}

.qr-code p {
  font-size: 0.9rem;
  color: #777;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .feature-list {
    flex-direction: column;
    gap: 25px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: 40vh;
    max-height: 350px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .activity-intro,
  .highlights-section,
  .opening-time {
    padding: 25px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto 25px;
  }
}

@media (max-width: 480px) {
  .hero-section {
    height: 35vh;
    max-height: 300px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .intro-text,
  .highlights-footer p,
  .time-text {
    font-size: 0.95rem;
  }

  .feature-icon {
    font-size: 1.8rem;
  }

  .qr-code img {
    width: 100px;
    height: 100px;
  }
}
</style>